package com.suyuan.entity;

import java.util.ArrayList;
import java.util.List;

public class CustomInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGidIsNull() {
            addCriterion("GID is null");
            return (Criteria) this;
        }

        public Criteria andGidIsNotNull() {
            addCriterion("GID is not null");
            return (Criteria) this;
        }

        public Criteria andGidEqualTo(Integer value) {
            addCriterion("GID =", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotEqualTo(Integer value) {
            addCriterion("GID <>", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThan(Integer value) {
            addCriterion("GID >", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThanOrEqualTo(Integer value) {
            addCriterion("GID >=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThan(Integer value) {
            addCriterion("GID <", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThanOrEqualTo(Integer value) {
            addCriterion("GID <=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidIn(List<Integer> values) {
            addCriterion("GID in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotIn(List<Integer> values) {
            addCriterion("GID not in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidBetween(Integer value1, Integer value2) {
            addCriterion("GID between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotBetween(Integer value1, Integer value2) {
            addCriterion("GID not between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andCompidIsNull() {
            addCriterion("CompID is null");
            return (Criteria) this;
        }

        public Criteria andCompidIsNotNull() {
            addCriterion("CompID is not null");
            return (Criteria) this;
        }

        public Criteria andCompidEqualTo(Integer value) {
            addCriterion("CompID =", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidNotEqualTo(Integer value) {
            addCriterion("CompID <>", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidGreaterThan(Integer value) {
            addCriterion("CompID >", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidGreaterThanOrEqualTo(Integer value) {
            addCriterion("CompID >=", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidLessThan(Integer value) {
            addCriterion("CompID <", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidLessThanOrEqualTo(Integer value) {
            addCriterion("CompID <=", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidIn(List<Integer> values) {
            addCriterion("CompID in", values, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidNotIn(List<Integer> values) {
            addCriterion("CompID not in", values, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidBetween(Integer value1, Integer value2) {
            addCriterion("CompID between", value1, value2, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidNotBetween(Integer value1, Integer value2) {
            addCriterion("CompID not between", value1, value2, "compid");
            return (Criteria) this;
        }

        public Criteria andCustnameIsNull() {
            addCriterion("CustName is null");
            return (Criteria) this;
        }

        public Criteria andCustnameIsNotNull() {
            addCriterion("CustName is not null");
            return (Criteria) this;
        }

        public Criteria andCustnameEqualTo(String value) {
            addCriterion("CustName =", value, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameNotEqualTo(String value) {
            addCriterion("CustName <>", value, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameGreaterThan(String value) {
            addCriterion("CustName >", value, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameGreaterThanOrEqualTo(String value) {
            addCriterion("CustName >=", value, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameLessThan(String value) {
            addCriterion("CustName <", value, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameLessThanOrEqualTo(String value) {
            addCriterion("CustName <=", value, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameLike(String value) {
            addCriterion("CustName like", value, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameNotLike(String value) {
            addCriterion("CustName not like", value, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameIn(List<String> values) {
            addCriterion("CustName in", values, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameNotIn(List<String> values) {
            addCriterion("CustName not in", values, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameBetween(String value1, String value2) {
            addCriterion("CustName between", value1, value2, "custname");
            return (Criteria) this;
        }

        public Criteria andCustnameNotBetween(String value1, String value2) {
            addCriterion("CustName not between", value1, value2, "custname");
            return (Criteria) this;
        }

        public Criteria andCustlevelIsNull() {
            addCriterion("CustLevel is null");
            return (Criteria) this;
        }

        public Criteria andCustlevelIsNotNull() {
            addCriterion("CustLevel is not null");
            return (Criteria) this;
        }

        public Criteria andCustlevelEqualTo(Integer value) {
            addCriterion("CustLevel =", value, "custlevel");
            return (Criteria) this;
        }

        public Criteria andCustlevelNotEqualTo(Integer value) {
            addCriterion("CustLevel <>", value, "custlevel");
            return (Criteria) this;
        }

        public Criteria andCustlevelGreaterThan(Integer value) {
            addCriterion("CustLevel >", value, "custlevel");
            return (Criteria) this;
        }

        public Criteria andCustlevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("CustLevel >=", value, "custlevel");
            return (Criteria) this;
        }

        public Criteria andCustlevelLessThan(Integer value) {
            addCriterion("CustLevel <", value, "custlevel");
            return (Criteria) this;
        }

        public Criteria andCustlevelLessThanOrEqualTo(Integer value) {
            addCriterion("CustLevel <=", value, "custlevel");
            return (Criteria) this;
        }

        public Criteria andCustlevelIn(List<Integer> values) {
            addCriterion("CustLevel in", values, "custlevel");
            return (Criteria) this;
        }

        public Criteria andCustlevelNotIn(List<Integer> values) {
            addCriterion("CustLevel not in", values, "custlevel");
            return (Criteria) this;
        }

        public Criteria andCustlevelBetween(Integer value1, Integer value2) {
            addCriterion("CustLevel between", value1, value2, "custlevel");
            return (Criteria) this;
        }

        public Criteria andCustlevelNotBetween(Integer value1, Integer value2) {
            addCriterion("CustLevel not between", value1, value2, "custlevel");
            return (Criteria) this;
        }

        public Criteria andCusttypeIsNull() {
            addCriterion("CustType is null");
            return (Criteria) this;
        }

        public Criteria andCusttypeIsNotNull() {
            addCriterion("CustType is not null");
            return (Criteria) this;
        }

        public Criteria andCusttypeEqualTo(Integer value) {
            addCriterion("CustType =", value, "custtype");
            return (Criteria) this;
        }

        public Criteria andCusttypeNotEqualTo(Integer value) {
            addCriterion("CustType <>", value, "custtype");
            return (Criteria) this;
        }

        public Criteria andCusttypeGreaterThan(Integer value) {
            addCriterion("CustType >", value, "custtype");
            return (Criteria) this;
        }

        public Criteria andCusttypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("CustType >=", value, "custtype");
            return (Criteria) this;
        }

        public Criteria andCusttypeLessThan(Integer value) {
            addCriterion("CustType <", value, "custtype");
            return (Criteria) this;
        }

        public Criteria andCusttypeLessThanOrEqualTo(Integer value) {
            addCriterion("CustType <=", value, "custtype");
            return (Criteria) this;
        }

        public Criteria andCusttypeIn(List<Integer> values) {
            addCriterion("CustType in", values, "custtype");
            return (Criteria) this;
        }

        public Criteria andCusttypeNotIn(List<Integer> values) {
            addCriterion("CustType not in", values, "custtype");
            return (Criteria) this;
        }

        public Criteria andCusttypeBetween(Integer value1, Integer value2) {
            addCriterion("CustType between", value1, value2, "custtype");
            return (Criteria) this;
        }

        public Criteria andCusttypeNotBetween(Integer value1, Integer value2) {
            addCriterion("CustType not between", value1, value2, "custtype");
            return (Criteria) this;
        }

        public Criteria andCustaddrIsNull() {
            addCriterion("CustAddr is null");
            return (Criteria) this;
        }

        public Criteria andCustaddrIsNotNull() {
            addCriterion("CustAddr is not null");
            return (Criteria) this;
        }

        public Criteria andCustaddrEqualTo(String value) {
            addCriterion("CustAddr =", value, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrNotEqualTo(String value) {
            addCriterion("CustAddr <>", value, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrGreaterThan(String value) {
            addCriterion("CustAddr >", value, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrGreaterThanOrEqualTo(String value) {
            addCriterion("CustAddr >=", value, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrLessThan(String value) {
            addCriterion("CustAddr <", value, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrLessThanOrEqualTo(String value) {
            addCriterion("CustAddr <=", value, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrLike(String value) {
            addCriterion("CustAddr like", value, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrNotLike(String value) {
            addCriterion("CustAddr not like", value, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrIn(List<String> values) {
            addCriterion("CustAddr in", values, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrNotIn(List<String> values) {
            addCriterion("CustAddr not in", values, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrBetween(String value1, String value2) {
            addCriterion("CustAddr between", value1, value2, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustaddrNotBetween(String value1, String value2) {
            addCriterion("CustAddr not between", value1, value2, "custaddr");
            return (Criteria) this;
        }

        public Criteria andCustnotesIsNull() {
            addCriterion("CustNotes is null");
            return (Criteria) this;
        }

        public Criteria andCustnotesIsNotNull() {
            addCriterion("CustNotes is not null");
            return (Criteria) this;
        }

        public Criteria andCustnotesEqualTo(String value) {
            addCriterion("CustNotes =", value, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesNotEqualTo(String value) {
            addCriterion("CustNotes <>", value, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesGreaterThan(String value) {
            addCriterion("CustNotes >", value, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesGreaterThanOrEqualTo(String value) {
            addCriterion("CustNotes >=", value, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesLessThan(String value) {
            addCriterion("CustNotes <", value, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesLessThanOrEqualTo(String value) {
            addCriterion("CustNotes <=", value, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesLike(String value) {
            addCriterion("CustNotes like", value, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesNotLike(String value) {
            addCriterion("CustNotes not like", value, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesIn(List<String> values) {
            addCriterion("CustNotes in", values, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesNotIn(List<String> values) {
            addCriterion("CustNotes not in", values, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesBetween(String value1, String value2) {
            addCriterion("CustNotes between", value1, value2, "custnotes");
            return (Criteria) this;
        }

        public Criteria andCustnotesNotBetween(String value1, String value2) {
            addCriterion("CustNotes not between", value1, value2, "custnotes");
            return (Criteria) this;
        }

        public Criteria andContactsIsNull() {
            addCriterion("Contacts is null");
            return (Criteria) this;
        }

        public Criteria andContactsIsNotNull() {
            addCriterion("Contacts is not null");
            return (Criteria) this;
        }

        public Criteria andContactsEqualTo(String value) {
            addCriterion("Contacts =", value, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsNotEqualTo(String value) {
            addCriterion("Contacts <>", value, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsGreaterThan(String value) {
            addCriterion("Contacts >", value, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsGreaterThanOrEqualTo(String value) {
            addCriterion("Contacts >=", value, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsLessThan(String value) {
            addCriterion("Contacts <", value, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsLessThanOrEqualTo(String value) {
            addCriterion("Contacts <=", value, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsLike(String value) {
            addCriterion("Contacts like", value, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsNotLike(String value) {
            addCriterion("Contacts not like", value, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsIn(List<String> values) {
            addCriterion("Contacts in", values, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsNotIn(List<String> values) {
            addCriterion("Contacts not in", values, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsBetween(String value1, String value2) {
            addCriterion("Contacts between", value1, value2, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactsNotBetween(String value1, String value2) {
            addCriterion("Contacts not between", value1, value2, "contacts");
            return (Criteria) this;
        }

        public Criteria andContactspositionIsNull() {
            addCriterion("ContactsPosition is null");
            return (Criteria) this;
        }

        public Criteria andContactspositionIsNotNull() {
            addCriterion("ContactsPosition is not null");
            return (Criteria) this;
        }

        public Criteria andContactspositionEqualTo(String value) {
            addCriterion("ContactsPosition =", value, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionNotEqualTo(String value) {
            addCriterion("ContactsPosition <>", value, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionGreaterThan(String value) {
            addCriterion("ContactsPosition >", value, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionGreaterThanOrEqualTo(String value) {
            addCriterion("ContactsPosition >=", value, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionLessThan(String value) {
            addCriterion("ContactsPosition <", value, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionLessThanOrEqualTo(String value) {
            addCriterion("ContactsPosition <=", value, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionLike(String value) {
            addCriterion("ContactsPosition like", value, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionNotLike(String value) {
            addCriterion("ContactsPosition not like", value, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionIn(List<String> values) {
            addCriterion("ContactsPosition in", values, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionNotIn(List<String> values) {
            addCriterion("ContactsPosition not in", values, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionBetween(String value1, String value2) {
            addCriterion("ContactsPosition between", value1, value2, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactspositionNotBetween(String value1, String value2) {
            addCriterion("ContactsPosition not between", value1, value2, "contactsposition");
            return (Criteria) this;
        }

        public Criteria andContactsphoneIsNull() {
            addCriterion("ContactsPhone is null");
            return (Criteria) this;
        }

        public Criteria andContactsphoneIsNotNull() {
            addCriterion("ContactsPhone is not null");
            return (Criteria) this;
        }

        public Criteria andContactsphoneEqualTo(String value) {
            addCriterion("ContactsPhone =", value, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneNotEqualTo(String value) {
            addCriterion("ContactsPhone <>", value, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneGreaterThan(String value) {
            addCriterion("ContactsPhone >", value, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneGreaterThanOrEqualTo(String value) {
            addCriterion("ContactsPhone >=", value, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneLessThan(String value) {
            addCriterion("ContactsPhone <", value, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneLessThanOrEqualTo(String value) {
            addCriterion("ContactsPhone <=", value, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneLike(String value) {
            addCriterion("ContactsPhone like", value, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneNotLike(String value) {
            addCriterion("ContactsPhone not like", value, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneIn(List<String> values) {
            addCriterion("ContactsPhone in", values, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneNotIn(List<String> values) {
            addCriterion("ContactsPhone not in", values, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneBetween(String value1, String value2) {
            addCriterion("ContactsPhone between", value1, value2, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsphoneNotBetween(String value1, String value2) {
            addCriterion("ContactsPhone not between", value1, value2, "contactsphone");
            return (Criteria) this;
        }

        public Criteria andContactsfaxIsNull() {
            addCriterion("ContactsFax is null");
            return (Criteria) this;
        }

        public Criteria andContactsfaxIsNotNull() {
            addCriterion("ContactsFax is not null");
            return (Criteria) this;
        }

        public Criteria andContactsfaxEqualTo(String value) {
            addCriterion("ContactsFax =", value, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxNotEqualTo(String value) {
            addCriterion("ContactsFax <>", value, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxGreaterThan(String value) {
            addCriterion("ContactsFax >", value, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxGreaterThanOrEqualTo(String value) {
            addCriterion("ContactsFax >=", value, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxLessThan(String value) {
            addCriterion("ContactsFax <", value, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxLessThanOrEqualTo(String value) {
            addCriterion("ContactsFax <=", value, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxLike(String value) {
            addCriterion("ContactsFax like", value, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxNotLike(String value) {
            addCriterion("ContactsFax not like", value, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxIn(List<String> values) {
            addCriterion("ContactsFax in", values, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxNotIn(List<String> values) {
            addCriterion("ContactsFax not in", values, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxBetween(String value1, String value2) {
            addCriterion("ContactsFax between", value1, value2, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsfaxNotBetween(String value1, String value2) {
            addCriterion("ContactsFax not between", value1, value2, "contactsfax");
            return (Criteria) this;
        }

        public Criteria andContactsmailIsNull() {
            addCriterion("ContactsMail is null");
            return (Criteria) this;
        }

        public Criteria andContactsmailIsNotNull() {
            addCriterion("ContactsMail is not null");
            return (Criteria) this;
        }

        public Criteria andContactsmailEqualTo(String value) {
            addCriterion("ContactsMail =", value, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailNotEqualTo(String value) {
            addCriterion("ContactsMail <>", value, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailGreaterThan(String value) {
            addCriterion("ContactsMail >", value, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailGreaterThanOrEqualTo(String value) {
            addCriterion("ContactsMail >=", value, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailLessThan(String value) {
            addCriterion("ContactsMail <", value, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailLessThanOrEqualTo(String value) {
            addCriterion("ContactsMail <=", value, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailLike(String value) {
            addCriterion("ContactsMail like", value, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailNotLike(String value) {
            addCriterion("ContactsMail not like", value, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailIn(List<String> values) {
            addCriterion("ContactsMail in", values, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailNotIn(List<String> values) {
            addCriterion("ContactsMail not in", values, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailBetween(String value1, String value2) {
            addCriterion("ContactsMail between", value1, value2, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andContactsmailNotBetween(String value1, String value2) {
            addCriterion("ContactsMail not between", value1, value2, "contactsmail");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNull() {
            addCriterion("username is null");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNotNull() {
            addCriterion("username is not null");
            return (Criteria) this;
        }

        public Criteria andUsernameEqualTo(String value) {
            addCriterion("username =", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotEqualTo(String value) {
            addCriterion("username <>", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThan(String value) {
            addCriterion("username >", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("username >=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThan(String value) {
            addCriterion("username <", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThanOrEqualTo(String value) {
            addCriterion("username <=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLike(String value) {
            addCriterion("username like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotLike(String value) {
            addCriterion("username not like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameIn(List<String> values) {
            addCriterion("username in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotIn(List<String> values) {
            addCriterion("username not in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameBetween(String value1, String value2) {
            addCriterion("username between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotBetween(String value1, String value2) {
            addCriterion("username not between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andPasswordIsNull() {
            addCriterion("password is null");
            return (Criteria) this;
        }

        public Criteria andPasswordIsNotNull() {
            addCriterion("password is not null");
            return (Criteria) this;
        }

        public Criteria andPasswordEqualTo(String value) {
            addCriterion("password =", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotEqualTo(String value) {
            addCriterion("password <>", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordGreaterThan(String value) {
            addCriterion("password >", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("password >=", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLessThan(String value) {
            addCriterion("password <", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLessThanOrEqualTo(String value) {
            addCriterion("password <=", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLike(String value) {
            addCriterion("password like", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotLike(String value) {
            addCriterion("password not like", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordIn(List<String> values) {
            addCriterion("password in", values, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotIn(List<String> values) {
            addCriterion("password not in", values, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordBetween(String value1, String value2) {
            addCriterion("password between", value1, value2, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotBetween(String value1, String value2) {
            addCriterion("password not between", value1, value2, "password");
            return (Criteria) this;
        }

        public Criteria andCustomsexIsNull() {
            addCriterion("customSex is null");
            return (Criteria) this;
        }

        public Criteria andCustomsexIsNotNull() {
            addCriterion("customSex is not null");
            return (Criteria) this;
        }

        public Criteria andCustomsexEqualTo(String value) {
            addCriterion("customSex =", value, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexNotEqualTo(String value) {
            addCriterion("customSex <>", value, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexGreaterThan(String value) {
            addCriterion("customSex >", value, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexGreaterThanOrEqualTo(String value) {
            addCriterion("customSex >=", value, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexLessThan(String value) {
            addCriterion("customSex <", value, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexLessThanOrEqualTo(String value) {
            addCriterion("customSex <=", value, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexLike(String value) {
            addCriterion("customSex like", value, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexNotLike(String value) {
            addCriterion("customSex not like", value, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexIn(List<String> values) {
            addCriterion("customSex in", values, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexNotIn(List<String> values) {
            addCriterion("customSex not in", values, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexBetween(String value1, String value2) {
            addCriterion("customSex between", value1, value2, "customsex");
            return (Criteria) this;
        }

        public Criteria andCustomsexNotBetween(String value1, String value2) {
            addCriterion("customSex not between", value1, value2, "customsex");
            return (Criteria) this;
        }

        public Criteria andCodeIsNull() {
            addCriterion("code is null");
            return (Criteria) this;
        }

        public Criteria andCodeIsNotNull() {
            addCriterion("code is not null");
            return (Criteria) this;
        }

        public Criteria andCodeEqualTo(String value) {
            addCriterion("code =", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualTo(String value) {
            addCriterion("code <>", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThan(String value) {
            addCriterion("code >", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualTo(String value) {
            addCriterion("code >=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThan(String value) {
            addCriterion("code <", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualTo(String value) {
            addCriterion("code <=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLike(String value) {
            addCriterion("code like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotLike(String value) {
            addCriterion("code not like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeIn(List<String> values) {
            addCriterion("code in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotIn(List<String> values) {
            addCriterion("code not in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeBetween(String value1, String value2) {
            addCriterion("code between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotBetween(String value1, String value2) {
            addCriterion("code not between", value1, value2, "code");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}